
@import url("https://fonts.googleapis.com/css2?family=Gluten&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Gluten&display=swap");

body {
    height: 250vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

button {
    position: relative;
    display: inline-block;
    width: 300px;
    height: 35px;
    justify-content: center;
    line-height: 5px;
    text-align: center;
    color: rgb(0, 0, 0);
    font-size: 30px;
    text-decoration: none;
    background: linear-gradient(90deg, #03a9f4, #f441a5, #ffeb3b, #03a9f4);
    background-size: 400%;
    border-radius: 30px;
}

button:hover {
    animation: animate 8s linear infinite;
}

@keyframes animate {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 400% 0;
    }
}


button:before {
    content: '';
    position: absolute;
    left: -5px;
    top: -5px;
    right: -5px;
    bottom: -5px;
    z-index: -1;
    background: linear-gradient(90deg, #03a9f4, #f441a5, #ffeb3b, #03a9f4);
    background-size: 400%;
    border-radius: 10px;
    opacity: 0;
    transition: all 1s;
}

button:hover:before {
    filter: blur(20px);
    opacity: 1;
}

body {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: linear-gradient(to right, #fee0a2, #f98d92, #ce65af, #8e51d3);
}

label {
    font-family: "Gluten", serif;
    font-size: 128px;
    z-index: 1;
    color: #fff;
    margin: -50px 0 32px;
}

label::after {
    content: "%";
}


.inputBox {
    position: relative;
    width: 250px;
}

.inputBox input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    outline: none;
}

.inputBox span {
    position: absolute;
    left: 0;
    top: 0;
    padding: 10px;
    color: #ccc;
    font-size: 1em;
    pointer-events: none;
    transition: all 0.5s;
}

.inputBox input:valid ~ span,
.inputBox input:focus ~ span {
    color: orange;
    transform: translateX(10px) translateY(-7px);
    font-size: 0.65em;
    padding: 0 10px;
    background-color: #fff;
}

body {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: linear-gradient(to right, #fee0a2, #f98d92, #ce65af, #8e51d3);
}

label {
    font-family: "Gluten", serif;
    font-size: 128px;
    z-index: 1;
    color: #fff;
    margin: -50px 0 32px;
}

label::after {
    content: "";
}


/* 主体 div 样式 */
.container {
    background-color: #e7e7e7;
    border-radius: 0.7rem;
    box-shadow: 0 0.9rem 1.7rem rgba(0, 0, 0, 0.25),
    0 0.7rem 0.7rem rgba(0, 0, 0, 0.22);
    height: 400px;
    max-width: 750px;
    overflow: hidden;
    position: relative;
    width: 100%;
}


/* 登录、注册框部分 */
.container-form {
    height: 100%;
    position: absolute;
    top: 0;
    transition: all 0.6s ease-in-out;
}

/* 登录框 - 默认层级高 */
.container-signIn {
    left: 0;
    width: 50%;
    z-index: 2;
}

/* 注册框 - 默认层级低 - 透明度 0 */
.container-signup {
    left: -105px;
    opacity: 0;
    width: 50%;
    z-index: 1;
}


/* 表单样式 */
.form {
    background-color: #e7e7e7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 3rem;
    height: 100%;
    text-align: center;
}

.link {
    color: #333;
    font-size: 0.3rem;
    margin: 1.5rem 0;
    text-decoration: none;
}

.button {
    background-color: #f25d8e;
    box-shadow: 0 4px 4px rgba(255, 112, 159, .3);
    border-radius: 5px;
    color: #e7e7e7;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.1rem;
    padding: 0.9rem 4rem;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
}

.form > .button {
    margin-top: 2.0rem;
}

.button:active {
    transform: scale(0.95);
}

/* ---------- 叠加部分样式 ------------- */
.container-overlay {
    height: 100%;
    left: 50%;
    overflow: hidden;
    position: absolute;
    top: 0;
    transition: transform 0.6s ease-in-out;
    width: 50%;
    z-index: 100;
}

.overlay {
    width: 200%;
    height: 100%;
    position: relative;
    left: -100%;
    background: url("../photo/img_4.png") no-repeat center fixed;
    background-size: cover;
    transition: transform 0.6s ease-in-out;
    transform: translateX(0);
}

.overlay-panel {
    height: 100%;
    width: 50%;
    position: absolute;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.overlay-left {
    transform: translateX(-20%);
}

.overlay-right {
    right: 0;
    transform: translateX(0);
}

/* 设计激活时叠加层的位置 */
.panel-active .overlay-left {
    transform: translateX(0);
}

.panel-active .container-overlay {
    transform: translateX(-100%);
}

.panel-active .overlay {
    transform: translateX(50%);
}

/* 设置激活时，登录注册层的位置和透明度 */
.panel-active .container-signIn {
    transform: translateX(100%);
}

.panel-active .container-signup {
    opacity: 1;
    z-index: 5;
    transform: translateX(100%);
}

#greeting {
    font-size: 150px;
    text-align: center;
    color: transparent;
    -webkit-text-stroke: thin #5b0961;
    transition: opacity 0.5s ease-in-out;
}

.text-font {
    font-family: 'Comic Sans MS', sans-serif;
    font-size: 18px;
    font-weight: 800;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.login-app {
    position: absolute;
    top: 40px; /* 调整值以使文本垂直对齐到底部 */
    width: 375px;
    max-height: 420px;
    margin-bottom: 400px;
    background-color: #fff;
    border-radius: 12px 12px 20px 20px;
    /* 避免空格换行缝隙影响布局 */
    font-size: 0;
}

input[type="radio"] {
    /* 单选框要默认隐藏 */
    display: none;
}

label.m-btn,
label.u-btn,
label.q-btn {
    display: inline-block;
    background-color: #f5f5f6;
    font-size: 20px;
    color: rgba(37, 38, 43, .36);
    padding: 20px;
    text-align: center;
    width: 33.3%;
    cursor: pointer;
}

.m-btn {
    border-top-left-radius: 12px;
}

.q-btn {
    border-top-right-radius: 12px;
}

#msg:checked + .m-btn,
#uname:checked + .u-btn,
#code:checked + .q-btn {
    background-color: #fff;
    color: #25262b;
    cursor: default;
}

#msg:checked ~ #form-bar {
    transform: translateX(0px);
}

#uname:checked ~ #form-bar {
    transform: translateX(-368px);
}

#code:checked ~ #form-bar {
    transform: translateX(-710px);
}

iframe {
    border: none;
}

#form-bar {
    display: flex;
    text-align: end;
    transition: transform .6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 16px;
}

form {
    flex-shrink: 30;
    width: 160%;
    padding: 36px;
    position: relative;
}

.card {
    width: 270px;
    height: 320px;
    position: relative;
}

.card .front::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 80px;
    top: 55%;
    background: rgba(0, 0, 0, 0.45);
    transform: translate3d(-50%, -50%, 20px);
    backface-visibility: hidden;
}

.card .front,
.card .back {
    position: absolute;
    top: -60px;
    left: -15px;
    width: 100%;
    height: 100%;
    text-align: center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: transform 4s;
    border-radius: 15px;
}

.card .front {
    z-index: 2;
    background: url("../photo/img_7.png");
    background-size: cover;
}

.card .front p {
    font-size: 15px;
    position: absolute;
    width: 400px;
    top: 55%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%) translateZ(60px);
    backface-visibility: hidden;
    color: #fff;
}

.card .back {
    z-index: 1;
    background: #191e25;
    transform: rotateY(180deg);
    padding: 20px;
}

.card .back .hero h2 {
    color: #f8fae4;
    font-weight: 400;
    margin-bottom: 10px;
}

.card .back span {
    display: inline-block;
    width: 40px;
    height: 25px;
    text-align: end;
    background-color: #c09f5a;
    line-height: 25px;
    border-radius: 2px;
    color: #191d20;
    font-weight: bold;
}

.card:hover .front {
    transform: rotateY(-100deg);
}

.card:hover .back {
    transform: rotateY(0deg);
}

#cardImage {
    max-width: 250px; /* 设置最大宽度为300像素 */
    max-height: 300px; /* 设置最大高度为200像素 */
}

.login_Image {
    max-width: 750px; /* 设置最大宽度为300像素 */
    max-height: 400px; /* 设置最大高度为200像素 */
    min-width: 750px;
    min-height: 400px;
}
